home *** CD-ROM | disk | FTP | other *** search
- on startMovie
- global i, j, k, n, o, ADSET, BLENDER, DEST, volume, PLAYRATE
- set the exitLock to 1
- set the volume of sound 1 to 255
- set the volume of sound 2 to 255
- SETSPEAKER()
- cursor(0)
- installMenu(o)
- set i to 0
- end
-
- on initRearWindow theColor
- global rwObj
- if the machineType = 256 then
- nothing()
- else
- if objectp(rwObj) then
- rwObj(mdispose)
- end if
- set rwObj to RearWindow(mnew, "M")
- rwObj(mIndexColorToWindow, theColor)
- end if
- end
-
- on disposeRearWindow
- global rwObj
- if the machineType = 256 then
- nothing()
- else
- if objectp(rwObj) then
- rwObj(mdispose)
- end if
- end if
- end
-
- on CONTROLS
- global CONTROLWINDOW, DEST
- if objectp(CONTROLWINDOW) then
- forget(CONTROLWINDOW)
- end if
- set horzOrigin to the stageLeft + 448
- set vertOrigin to the stageTop
- set CONTROLWINDOWrect to rect(horzOrigin, vertOrigin, horzOrigin + 192, vertOrigin + 60)
- set CONTROLWINDOW to window "CONTROLS"
- set the rect of CONTROLWINDOW to CONTROLWINDOWrect
- set the fileName of CONTROLWINDOW to DEST & "CONTROLS"
- set the titleVisible of CONTROLWINDOW to 0
- set the modal of CONTROLWINDOW to 0
- set the windowType of CONTROLWINDOW to 2
- open(CONTROLWINDOW)
- end
-
- on endMOVIE
- global CONTROLWINDOW, DEST
- installMenu(0)
- if objectp(CONTROLWINDOW) then
- forget(CONTROLWINDOW)
- end if
- set horzOrigin to the stageLeft + 160
- set vertOrigin to the stageTop + 130
- set CONTROLWINDOWrect to rect(horzOrigin, vertOrigin, horzOrigin + 320, vertOrigin + 220)
- set CONTROLWINDOW to window "CONTROL"
- set the rect of CONTROLWINDOW to CONTROLWINDOWrect
- set the fileName of CONTROLWINDOW to DEST & "CONTROL"
- set the titleVisible of CONTROLWINDOW to 0
- set the modal of window "CONTROL" to 1
- sound stop 2
- open(CONTROLWINDOW)
- end
-
- on stopMovie
- finishMovie()
- end
-
- on finishMovie
- global CONTROLWINDOW
- set the modal of window "CONTROL.DIR" to 0
- set the modal of window "CONTROLS.DIR" to 0
- set the modal of window "endWIND.DIR" to 0
- if objectp(CONTROLWINDOW) then
- forget(CONTROLWINDOW)
- end if
- end
-